package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter@Setter
public class Checklist {
    private Long id;
    public static final int STATE_NORMAL = 1;//验证完
    public static final int STATE_QUIT = 0;//验证失败
    public static final int STATE_WAIT = -1;//待验证

    /*当前状态*/
    private Integer status=STATE_WAIT;

    /*事故责任*/
    private String duty;

    /*备注*/
    private String remark;

    /*验证的员工姓名*/
    private Employee inputUser;

    /*报案人（客户）信息  （封装成对象 需要获取姓名，联系方式）*/
    private Client client;

    /*报案时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date otime;

    /**
     * 保单对象
     */
    private GuaranteeBill guaranteeBill;


}